package com.mzkj.wanjulaile.mobile.api.modules.account.entity;

import com.mzkj.wanjulaile.mobile.api.common.entity.DataEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * VIP总类别Entity
 * @author ianly
 * @version 2017-01-04
 */
public class VipCategory extends DataEntity<VipCategory> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// vip类型名称
	private Integer type;		// vip种类类别
	private Integer star;		// 星值
	private Integer sort;		// 排序
	private String intro;		// 简介
	private String rule;		// 会员权益
	private String showFlag;		// 是否显示 0:显示(默认) 1:隐藏
	private String bgImg;         //背景图
	private List<VipScheme> vipSchemeList;  //  会员制度
	
	public VipCategory() {
		super();
	}

	public VipCategory(String id){
		super(id);
	}

	@Length(min=1, max=255, message="vip类型名称长度必须介于 1 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@NotNull(message="vip种类类别不能为空")
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	
	@NotNull(message="星值不能为空")
	public Integer getStar() {
		return star;
	}

	public void setStar(Integer star) {
		this.star = star;
	}
	
	@NotNull(message="排序不能为空")
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	@Length(min=1, max=255, message="简介长度必须介于 1 和 255 之间")
	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}
	
	public String getRule() {
		return rule;
	}

	public void setRule(String rule) {
		this.rule = rule;
	}

	public String getShowFlag() {
		return showFlag;
	}

	public void setShowFlag(String showFlag) {
		this.showFlag = showFlag;
	}

	public String getBgImg() {
		return bgImg;
	}

	public void setBgImg(String bgImg) {
		this.bgImg = bgImg;
	}

	public List<VipScheme> getVipSchemeList() {
		return vipSchemeList;
	}

	public void setVipSchemeList(List<VipScheme> vipSchemeList) {
		this.vipSchemeList = vipSchemeList;
	}
}